import defaultSettings from '@/settings'

let title = defaultSettings.title || 'Vue Admin Template'
// 判断域名
const url = location.href
if (url.indexOf('xmpfm') > -1) {
  title = '厦门屏方米信息科技有限公司'
} else if (url.indexOf('fjwdc') > -1) {
  title = '福建五度仓科技有限公司'
} else {
  title = '预策蔚来（厦门）科技有限公司'
}

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
